home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-07 / cdshar14.exe / CDSHARE.DOC < prev    next >
Text File  |  1992-01-03  |  55KB  |  1,585 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.                                     CD SHARE
  20.  
  21.                          CD ROM NETWORK SHARING SOFTWARE
  22.  
  23.                             Version 1.1 User's Manual
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.      Digital Solutions Pty. Ltd.
  58.      P.O. Box 178
  59.      Margate
  60.      QLD, Australia. 4019
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.      Ph. 07 8831851 Intl. 617 8831852
  74.      Fax 07 2831217 Intl. 617 2831217
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.                              TABLE OF CONTENTS
  141.  
  142.      CONTENTS                                                    PAGE
  143.  
  144.      1.0 BACKGROUND                                               1
  145.  
  146.          1.1 THE CD-ROM SOFTWARE INTERFACE                        1
  147.  
  148.          1.2 CD-SHARE - WHAT IT IS AND WHY WE NEED IT             2
  149.  
  150.      2.0 CONFIGURING A CD-SERVER                                  5
  151.  
  152.      3.0 CONFIGURING A CD-WORKSTATION                             5
  153.  
  154.      4.0 COMMAND LINE SWITCHES                                    9
  155.  
  156.          4.1 CD MANAGER COMMAND LINE SWITCHES                     9
  157.  
  158.          4.2 CD REDIRECTOR COMMAND LINE                          11
  159.  
  160.          4.3 CD-SERVER COMMAND LINE SWITCHES                     11
  161.  
  162.      5.0 CACHING YOUR CD-ROM DRIVES - CD-CACHE                   13
  163.  
  164.      6.0 ADVANCED TOPICS                                         15
  165.  
  166.          6.1 MEMORY USAGE                                        15
  167.  
  168.          6.2 OPTIMIZING CD-SERVE PARAMETERS                      16
  169.              FOR A NON-DEDICATED SERVER
  170.  
  171.          6.3 OPTIMIZING CD-CACHE PARAMETERS                      17
  172.  
  173.          6.4 RUNNING CD-SERVE AND CD-CACHE IN DEDICATED MODE     19
  174.  
  175.      7.0 QUESTIONS AND ANSWERS                                   20
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                   Page 1
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.      1.0 BACKGROUND
  207.  
  208.      1.1 THE CD-ROM SOFTWARE INTERFACE
  209.  
  210.      When you purchase a CD-ROM drive  and controller card for your PC
  211.      you will usually also receive a disk containing a software device
  212.      driver  for the  drive and  a program  written by  MicroSoft Corp
  213.      called the "MS-DOS CD-ROM Extensions" (MSCDEX.EXE).
  214.  
  215.      Device drivers are programs that  are loaded by including them in
  216.      a line  in the CONFIG.SYS  file on  your DOS boot  disk. A device
  217.      driver is a software program  with a standard DOS interface which
  218.      allows DOS  to talk  to hardware  devices which  it knows nothing
  219.      about. Although you don't see it DOS actually talks to your disks
  220.      via an internal device driver !
  221.  
  222.      The device driver  supplied with your  CD-ROM drive(s) allows DOS
  223.      to interface  to the  CD-ROM drive  without actually  knowing the
  224.      hardware specifics of the drive. This is how DOS can interface to
  225.      various  different  brands  of  drives  with  different  hardware
  226.      interfaces -  it simply  talks via  the device  driver which does
  227.      know about the hardware.
  228.  
  229.      There are two different classes of device drivers - character and
  230.      block device drivers. An example of a character device driver are
  231.      the internal DOS  devices named CON (your  console) and PRN (your
  232.      LPT1) since they work a character at a time. Your disk drives are
  233.      block  devices since  they transfer  data to  and from  memory in
  234.      blocks (e.g. a typical  cluster (block) size for  a disk might be
  235.      2K bytes.  Character device drivers  and addressed  by name (e.g.
  236.      CON,  PRN,  COM1,  etc) whereas  block  type  device  drivers are
  237.      allocated a drive letter by DOS in the range A: to Z:.
  238.  
  239.      A single device driver can control a number of drives, in fact up
  240.      to 255. Since DOS  only allows block device  drive names A: to Z:
  241.      this limits the practical total number of drives to a total of 26
  242.      minus  any  physical  hard  and   floppy  disk  drives  that  are
  243.      installed.  If  you  had  two  floppy  disks  and  one  hard disk
  244.      installed (A;, B: and C:) and a device driver named 'DEVICED' was
  245.      installed  controlling 3  block devices  the  system would  be as
  246.      follows :
  247.                   ┌──── A:
  248.                   │
  249.                   ├──── B:
  250.                   │
  251.                   ├──── C:
  252.          DOS──────┤   ┌───────────┐    ┌──── E:
  253.                   │   │           │    │
  254.                   └───┤  DEVICED  ├────┼──── F:
  255.                       │           │    │
  256.                       └───────────┘    └──── G:
  257.  
  258.                                   Fig. 1
  259.  
  260.  
  261.                                   Page 2
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.      DOS automatically  gives block  devices the  next available drive
  273.      letter(s) when the  device driver is  installed in the config.sys
  274.      file.
  275.  
  276.      If CD-ROM's were normal block device that would be the end of the
  277.      story, however a single  CD-ROM can hold a  massive 550 MBytes of
  278.      information  - far  more than  DOS  was designed  to manage  on a
  279.      single block device. To  overcome this limitation MicroSoft wrote
  280.      some extensions  to DOS known  as the  "MS-DOS CD-ROM Extensions"
  281.      (MSCDEX). MSCDEX  uses the networking  drive redirection features
  282.      built into DOS versions  3.1 and later to  create a logical drive
  283.      for each  drive attached to  each device driver  specified on the
  284.      MSCDEX command  line when the  extensions are  started. MSCDEX is
  285.      not a device driver, it is  a "Terminate and Stay Resident" (TSR)
  286.      program which runs  and returns to  DOS but remains  in memory to
  287.      it's work in the background.
  288.  
  289.      So that CD-ROM device drivers won't  be installed by DOS as block
  290.      devices  the  device  driver  header  tells  DOS  that  they  are
  291.      character  devices  (even  though  they  aren't).  CD-ROM  device
  292.      drivers are block device drivers  that appear to DOS as character
  293.      devices but  have a  special signature  so that  MSCDEX and other
  294.      software wishing to talk to the  CD-ROM via the device driver can
  295.      recognize them as  CD-ROM devices. If  our previous example (Fig.
  296.      1)  of DOS  with a  three  drive device  driver were  replaced by
  297.      MSCDEX and a  device driver (CDDRIVER)  driving three CD-ROMS the
  298.      layout would now be as follows :
  299.      
  300.                   ┌──── A:
  301.                   │
  302.                   ├──── B:
  303.                   │
  304.                   ├──── C:
  305.          DOS──────┤   ┌──────────┐  ┌──────────┐  ┌──── E:
  306.                   │   │          │  │          │  │
  307.                   └───┤  MSCDEX  ├──┤ CDDRIVER ├──┼──── F:
  308.                       │          │  │          │  │
  309.                       └──────────┘  └──────────┘  └──── G:
  310.  
  311.                                   Fig. 2
  312.      
  313.      When MSCDEX or any other software calls a CD-ROM device driver it
  314.      specifies which drive (or unit) it wishes to access by specifying
  315.      a number beginning with zero. It  figure 2 the logical drives E:,
  316.      F: and G: would be drives 0,1 and 2 to CDDRIVER.
  317.  
  318.      1.2 CD-SHARE - WHAT IT IS AND WHY WE NEED IT
  319.  
  320.      As well as making CD-ROM's appear as normal (large capacity) disk
  321.      drives,   MSCDEX  supplies   a  number   of  other   services  to
  322.      applications  software  that   calls  MSCDEX  directly.  Although
  323.      networks such as ArtiSoft's LANtastic can redirect a CD-ROM drive
  324.      so that it  appears as an  extra drive on  a network workstation,
  325.  
  326.  
  327.                                   Page 3
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.      CD-ROM software that  requires MSCDEX to run  won't work. To make
  338.      matters  even   worse  some   CD-ROM  software   bypasses  MSCDEX
  339.      completely and talks directly to the CD-ROM device driver.
  340.  
  341.      This is where  CD-SHARE comes in.  The CD-SHARE software contains
  342.      CD-Server  and CDWORK/CD-Redirector.  CDServer  is a  TSR program
  343.      which is run on the network  computer which has the CD-ROM drives
  344.      fitted  and  the  appropriate  CD-ROM  device  drivers installed.
  345.      CDWORK.SYS and CD-Redirector are run on workstations which wishes
  346.      to access CD-ROM  devices on CD-Servers.  CDWORK.SYS appears as a
  347.      local CD-ROM device driver, however it passes and device requests
  348.      onto  CD-Redirector  which in  turn  passes the  requests  to the
  349.      appropriate CD-Server for processing.  The results of the request
  350.      are passed back to CD-Redirector/CDWORK.SYS  and then back to the
  351.      application  which  called   CDWORK.SYS  .  CDWORK.SYS  therefore
  352.      appears to  applications programs  (including MSCDEX)  as a local
  353.      CD-ROM device driver.
  354.  
  355.      The CD-Manager program  allows you to alter  the number of drives
  356.      that CDWORK.SYS appears to be controlling, and to connect each of
  357.      those  logical drives  to  a CD-ROM  drive  on a  network machine
  358.      running CD-SERVER.
  359.  
  360.      Because CD-ROM  seek times  and data  transfer rates  are so slow
  361.      sharing a single CD-ROM amongst  a number of users usually causes
  362.      applications on workstations to run unacceptably slow. Because of
  363.      this the CD-SHARE software suite  also includes CD-CACHE which is
  364.      a  CD-ROM  caching   program  written  specifically   to  run  in
  365.      conjunction with CD-SHARE. When  CD-CACHE running, when a request
  366.      to  read CD-ROM  data occurs  CD-CACHE  checks to  see if  it has
  367.      already been read. If  not then the data  is read from the CD-ROM
  368.      and  stored in  the cache  as well  as being  passed back  to the
  369.      calling software. If a  request for data which  is already in the
  370.      cache occurs  then the data  is returned directly  from the cache
  371.      without any access  at all to the  CD-ROM. The CD-CACHE algorithm
  372.      ensures that the most frequently read data (directories, etc) are
  373.      always kept in the cache,  this improves response times even when
  374.      only one users is running  programs from the CD-ROM. CD-CACHE can
  375.      use conventional or extended memory up to 32 MBytes.
  376.  
  377.      The networking version of figure 2 using CD-SHARE would appear as
  378.      follows :
  379.          ┌──── A:
  380.          │
  381.          ├──── B:
  382.          │
  383.          ├──── C:                                    ┌────────┐
  384.      DOS─┤ ┌────────┐ ┌────────┐ ┌─────┐     ┌─────┐ │        ├─── 0
  385.          └─┤ MSCDEX ├─┤ CDWORK ├─┤ CDR │-----│ CDS ├─┤CDDRIVER├─── 1
  386.            └────────┘ └────────┘ └─────┘  ^  └─────┘ │        ├─── 2
  387.                                           │          └────────┘    ^
  388.                      Network Connection ──┘           Drive Nos.───┘
  389.  
  390.                                   Fig. 3
  391.  
  392.  
  393.                                   Page 4
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.      Where :
  404.                    1. CDWORK is the CD-Share CD-ROM device driver
  405.                    2. CDR is the CD-Redirector
  406.                    3. CDS is the CD-Server
  407.  
  408.      Note that figure three is  a very simple configuration. Each copy
  409.      of  CDS which  is started  on a  CD-Server is  started up  with a
  410.      unique name and can be attached to multiple device drivers on the
  411.      server  computer. Using  CD-Manager (CDM)  each logical  drive on
  412.      CDWORK may be connected to any CDServer\Device\Drive. For Example
  413.  
  414.                    SERVERS         DEVICE DRIVERS       DRIVES
  415.  
  416.                  ┌──────────┐      ┌────────────┐  ┌─────  0
  417.          +-------│ CDSERV-1 ├───┬──┤   DRIVER1  ├──┤
  418.          |       └──────────┘   │  └────────────┘  └─────  1
  419.          |                      │  ┌────────────┐  ┌─────  0
  420.          |                      └──┤   DRIVER2  ├──┼─────  1
  421.          |                         └────────────┘  └─────  2
  422.          |
  423.          |       ┌──────────┐      ┌────────────┐  ┌─────  0
  424.          +-------│ CDSERV-2 ├──────┤   DRIVER1  ├──┼─────  1
  425.          |       └──────────┘      └────────────┘  └─────  2
  426.          |
  427.          |       ┌──────────┐      ┌────────────┐  ┌─────  0
  428.          +-------│ CDSERV-3 ├───┬──┤   DRIVER1  ├──┤
  429.          |       └──────────┘   │  └────────────┘  └─────  1
  430.          |                      │  ┌────────────┐  ┌─────  0
  431.          |                      ├──┤   DRIVER2  ├──┼─────  1
  432.          |                      │  └────────────┘  └─────  2
  433.          |                      │  ┌────────────┐
  434.          |                      └──┤   DRIVER3  ├────────  0
  435.          |                         └────────────┘
  436.          |
  437.          |
  438.          |       WORKSTATION
  439.          |
  440.          |       DEVICE DRIVER       ATTACHED TO        DRIVES
  441.          |
  442.          |                         ┌─CDSERV-1\DRIVER2\2 =  0
  443.          |       ┌─────┐ ┌────────┐│
  444.          +-------│ CDR ├─┤ CDWORK ├┼─CDSERV-3\DRIVER3\0 =  1
  445.                  └─────┘ └────────┘│
  446.                                    └─CDSERV-1\DRIVER1\1 =  2
  447.  
  448.                                   Fig. 4
  449.  
  450.      Note that since CDWORK simulates a CD-ROM device driver, there is
  451.      no need to run MSCDEX on workstations running software that talks
  452.      directly  to  the  CD-ROM  device  driver.  Also  CD-Server  is a
  453.      non-dedicated server, this means that  CDR and CDWORK may also be
  454.      run on the  server which may  then log into  and use devices made
  455.      networkable  by  it's  own  copy of  CD-Serve  as  well  as other
  456.      CD-Servers.
  457.  
  458.  
  459.                                   Page 5
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.      2.0 CONFIGURING A CD-SERVER
  471.  
  472.  
  473.      1.  Install  the  CD-ROM  drives,  controllers,  etc.  and device
  474.          drivers  then test  run  the drives  and  programs as  if the
  475.          system were  not to be  networked to make  sure everything is
  476.          okay before adding the CD-Server.
  477.  
  478.      2.  If you have run  MSCDEX in step 1,  then re-boot the computer
  479.          and DON'T  run MSCDEX. Copy  the CDServer  (CDS.EXE) from the
  480.          CD-Share distribution disk onto your system boot disk.
  481.  
  482.      3.  Make  sure your  network  NETBIOS driver  has  been installed
  483.          (with LANtastic this is  AILANBIO, LANBIOS, or LANBIOS2). You
  484.          won't  need  any  other   networking  software  on  a  CD-ROM
  485.          workstation  or  a CD-Server  in  order to  run  the CD-Share
  486.          programs.   (You   can   still   run   network  re-directors,
  487.          non-dedicated servers, etc. if need be).
  488.  
  489.      4.  Assuming you wish  to allow five logged  in users, have named
  490.          your CD-ROM  device drivers  DRIVER1, DRIVER2,  etc (You will
  491.          have specified the driver names on the "DEVICE=" line for the
  492.          drivers in the  config.sys file. Typical  names take the form
  493.          MSCD001,  MSCD002, etc)  and we  wish to  call our  CD server
  494.          cdserver1 enter the following command line :
  495.  
  496.          CDS CDSERVER1 device=DRIVER1 device=DRIVER2 verbose users=5
  497.  
  498.          The "device=DeviceName" section  may be repeated  up to eight
  499.          times. CD-Serve can handle up  to 32 drives (e.g. four device
  500.          drivers  each driving  eight  drives, or  eight  drivers each
  501.          driving four drives, one driver driving eight drives and four
  502.          drivers driving six  drives, or any  mix). The verbose option
  503.          is optional and causes CDS to indicate the names of connected
  504.          device  drivers  as they  are  attached to  confirm  that the
  505.          command line  was accepted  correctly. The  "device=" section
  506.          may  be  abbreviated to  "d="  to  fit more  switches  on the
  507.          command line.  CDS has more  command line  switches, they are
  508.          covered in the "Advanced Topics" section.
  509.  
  510.          Note  that  after  CDS has  been  run,  all  connected device
  511.          drivers are effectively  removed from the  DOS device list so
  512.          they can't be accessed by any  other software. If you need to
  513.          access  the device  drivers in  order to  gain access  to the
  514.          CD-ROM(s)  from software  running locally  on the  server you
  515.          will have to configure the server as a workstation as well.
  516.  
  517.      3.0 CONFIGURING A CD-WORKSTATION
  518.  
  519.      1.  Copy  the programs  CDWORK.SYS, CDR.EXE  (CD-Redirector), and
  520.          CDM( CD-Manager) onto the workstation disk. CDWORK.SYS should
  521.          be in the root directory, CDR.EXE  and CDM.EXE should be in a
  522.          directory which is on the PATH.
  523.  
  524.  
  525.                                   Page 6
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.      2.  Insert a  line similar  to that  following in  the config.sys
  537.          file on the workstation boot disk :
  538.  
  539.          DEVICE=CDWORK.SYS [DEVICE_NAME]
  540.  
  541.          Where DEVICE_NAME is the name that MSCDEX or any other CD-ROM
  542.          software  will  use  to  access  the  CD-ROM  driver. Typical
  543.          examples might be :
  544.  
  545.          DEVICE=CDWORK.SYS MSCD001
  546.          OR
  547.          DEVICE=CDWORK.SYS CDWORK
  548.  
  549.          We  will  assume  that  the name  CDWORK  is  used  in future
  550.          discussion. Whatever you use, make sure that the name doesn't
  551.          conflict  with a  name  you have  given  to any  other device
  552.          drivers (e.g. if you are setting up a non-dedicated CD-Server
  553.          you will have both CDWORK.SYS  and real CD-ROM device drivers
  554.          installed in the config.sys file).
  555.  
  556.      3.  You will now have to  re-boot the computer so that CDWORK.SYS
  557.          is installed. CDWORK.SYS will sign on with a line similar to
  558.  
  559.          CDWORK Installed - Copyright Digital Solutions
  560.  
  561.          during the boot sequence.
  562.  
  563.      4.  Make  sure  that   your  network  NETBIOS   driver  has  been
  564.          installed. Assuming you wish to call your CD Workstation CDW1
  565.          and  you  wish  to  redirect  to  a  maximum  of  two CDROM's
  566.          simultaneously enter the following command line :
  567.  
  568.          CDR CDW1 2
  569.  
  570.          The actual syntax for the CDR command line is :
  571.  
  572.          CDR [Station Name] {Maximum Drives}
  573.  
  574.          where []  indicates that  the parameter  is mandatory  and {}
  575.          indicates that the switch is optional. If "Maximum Drives" is
  576.          not specified  it defaults to  one. This is  all that usually
  577.          required since CD-Manager (CDM) can be used to disconnect the
  578.          redirected  CD-ROM  drive  from  any  CD  Server  device  and
  579.          re-connect to another at will. Also MSCDEX uses an additional
  580.          4K of memory for each logical drive on a device driver.
  581.  
  582.      5.  You can now use  CDM to connect to  devices and drives on any
  583.          CD-Servers that are on  line. To log into  and connect to our
  584.          CDSERVER1, DEVICE1,  DRIVE 0 that  we set up  in the previous
  585.          section, enter the following command line :
  586.  
  587.          CDM V IN:ON +:0=\\CDSERVER1\DEVICE1\0
  588.  
  589.  
  590.  
  591.                                   Page 7
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.  
  599.  
  600.  
  601.          After  CDM connects  output similar  to the  following should
  602.          appear on the screen :
  603.  
  604.  
  605.          C:\CDM V IN:ON +:0=\\CDSERVER1\DEVICE1\0
  606.  
  607.          DEVICE1            :           Units            =           2
  608.  
  609.          CD - REDIRECTOR STATUS....
  610.  
  611.          Connected                                           servers..
  612.  
  613.                  \\CDSERVER1
  614.  
  615.          Drives..
  616.  
  617.                  Drive 0: Connected to \\CDSERVER1\DEVICE1\0
  618.                  Drive 1: NOT Connected
  619.  
  620.          Total Servers  Attached :  1
  621.          Total Drives   Attached :  1
  622.          Maximum Drives Attached :  2
  623.          Activity  Indicator is  : ON at Row 1, Column 80
  624.  
  625.          C:\
  626.  
  627.                                     Fig. 5
  628.  
  629.          Let's analyze  the command line  to set what  we've done. The
  630.          first switch  V{erbose} tells  CDW to  work in  verbose mode.
  631.          This is why the line
  632.  
  633.                    DEVICE1 : Units = 2
  634.  
  635.          appeared,  and why  the CD  Redirector  status was  listed in
  636.          full.
  637.  
  638.          The next switch
  639.  
  640.                    IN{dicator}:ON
  641.  
  642.          tells CDM  to turn on  the CD  Redirector activity indicator.
  643.          This  causes  a  small activity  indicator  to  flash  on the
  644.          workstation as CD-ROM activity is in progress. By default the
  645.          position of this is  row one, column 80  on the screen (upper
  646.          right corner), see "CDM Command Line Switches" for details on
  647.          how to change this position.
  648.  
  649.          The next switch requires a little more description :
  650.  
  651.  
  652.                    +:0=\\cdserver1\device1\0
  653.  
  654.          The + option tells CDM to  add a new connection to CDWORK, in
  655.  
  656.  
  657.                                   Page 8
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665.  
  666.  
  667.          this case to a  drive 0, on a device  named "device1" on a CD
  668.          Server named "cdserver1". The actual syntax is as follows :
  669.  
  670.          +:[Local Drive Number]=\\[Server Name]\[Device Name]\Drive
  671.  
  672.          Where a device named "Device Name" be attached to a CD Server
  673.          named "Server Name" and that  device must have a drive number
  674.          "Drive".
  675.  
  676.          If you  now run the  Microsoft extensions  on the workstation
  677.          specifying  the  name  that you  gave  CDWORK.SYS  (we'll use
  678.          CDWORK as the name) you should get the following response :
  679.  
  680.          C:\mscdex /d:cdwork
  681.          MSCDEX Version 2.10
  682.          Copyright  (C) Microsoft  Corp. 1986,  1987, 1988,  1989. All
  683.          rights reserved.
  684.                 Drive D: = Driver CDWORK unit 0
  685.                 Drive E: = Driver CDWORK unit 1
  686.  
  687.          C:\
  688.  
  689.                                     Fig. 6
  690.  
  691.          Note that your drive letters  may not necessarily begin at D:
  692.          depending upon the drives installed  in your computer and any
  693.          redirected network drives you may have.
  694.  
  695.          If you now type :
  696.  
  697.                    DIR D:
  698.  
  699.          You should now get a  directory listing of the root directory
  700.          of the disk in your CD-ROM drive.
  701.  
  702.          Note that if you now type in
  703.  
  704.                    DIR E:
  705.  
  706.          You will  get an error  message from MSCDEX  stating that the
  707.          drive  is  not  ready,  this is  because  drive  E:  which is
  708.          attached to DRIVE  1 on CDWORK  is not connected  to a server
  709.          device (see Fig. 5).
  710.  
  711.          Now that  MSCDEX has  been run  you may  refer to  the CDWORK
  712.          drives by their drive number, or by their MSCDEX drive letter
  713.          when using CDM.
  714.  
  715.          The - CDM command line switch allows a drive connection to be
  716.          removed e.g.
  717.  
  718.          CDM -:0, or CDM -:D
  719.  
  720.          Would cause CDWORK drive 0 (Fig. 5) to be disconnected, or
  721.  
  722.  
  723.                                   Page 9
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731.  
  732.  
  733.  
  734.          CDM LOGOUT:CDSERVER1
  735.  
  736.          Would cause all connections to CDSERVER1 to be removed.
  737.  
  738.      4.0 COMMAND LINE SWITCHES
  739.  
  740.      4.1 CD MANAGER COMMAND LINE SWITCHES
  741.  
  742.      The syntax of the CD Manager (CDM.EXE) command line is as follows
  743.  
  744.          CDM {switches}
  745.  
  746.      Where {switches} represents  any of the  following switches, each
  747.      separated by a space. Note  that any characters between {} braces
  748.      are optional, the {}  characters do NOT form  part of the switch.
  749.      Square braces  [] indicate  that the words  between the  [] are a
  750.      name  and should  not be  entered as  shown. i.e.  The name  of a
  751.      Device, CD Server, or Drive  Number should be substituted for the
  752.      [name]  entry  (the  []  characters  are  not  required.  e.g. To
  753.      indicate  that a  device name  is required  we might  say [Device
  754.      Name], when CDM is  actually run we might  use DEVICE1 instead of
  755.      [Device Name]. In all cases a  = character may be substituted for
  756.      the : character in the following list.
  757.  
  758.      Switch        Function
  759.      
  760.      V{erbose}     Causes verbose  operation of  CDM. CDM  will report
  761.                    various activities  as they are  processed and will
  762.                    cause CDM  to show  a CD  Redirector status listing
  763.                    after all other switches have been processed.
  764.  
  765.      Sh{ow}        Causes CDM  to display  CD Redirector  status after
  766.                    all other switches have been processed.
  767.  
  768.      Logo{ut}:     Syntax
  769.  
  770.                    Logout:Server_Name
  771.  
  772.                    Causes all  CDWORK drive  connections to  CD Server
  773.                    "Server_Name" to  be deleted and  the connection to
  774.                    "Server_Name" to be removed.
  775.  
  776.      +:            Syntax
  777.  
  778.                    +:[Local Drive]=\\[ServerName]\[DeviceName]\[Drive]
  779.  
  780.                    Attaches the CDWORK drive  [Local Drive] to [Drive]
  781.                    on a device named [DeviceName] on a CD Server named
  782.                    [ServerName].  For [Local  Drive] either  the local
  783.                    CDWORK drive number or the drive letter may be used
  784.                    if MSCDEX has been run.  [Drive] may be replaced by
  785.                    ALL if you  want all of  the drives on [DeviceName]
  786.                    to  be  attached to  CDWORK  beginning  with CDWORK
  787.  
  788.  
  789.                                   Page 10
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796.  
  797.  
  798.  
  799.                    drive [Local Drive]. e.g.  to Connect local drive 1
  800.                    to   [Drive]   2   on   [DeviceName]   MSCD001   on
  801.                    [ServerName] CDSERVER1  the following  switch would
  802.                    be used
  803.  
  804.                    +:1=\\CDSERVER1\MSCD001\2
  805.  
  806.                    If  MSCDEX  had  been run  and  Local  Drive number
  807.                    corresponded to drive E:  then the following syntax
  808.                    could also have been used
  809.  
  810.                    +:E=\\CDSERVER1\MSCD001\2
  811.  
  812.      -:            Syntax
  813.  
  814.                    -:[Local Drive]
  815.  
  816.                    Disconnects  [Local Drive]  from  the device  it is
  817.                    currently attached to. [Local  Drive] may be either
  818.                    the  CDWORK  logical  drive  (unit)  number  or the
  819.                    MSCDEX drive name if MSCDEX has been run.
  820.  
  821.      Dr{ives}      Syntax
  822.  
  823.                    Drives:[New Number of Local Drives]
  824.  
  825.                    Alters the number of logical drives that CDWORK can
  826.                    redirect.  This  switch  will  not  be  accepted if
  827.                    MSCDEX has already been run.
  828.  
  829.      In{dicator}   Syntax
  830.  
  831.                    Indicator:[On|Off]{@Row,Column}
  832.  
  833.                    Turns the  CD Redirector  activity indicator  On or
  834.                    Off depending upon whether  On, or Off is specified
  835.                    after the : . If On is specified you may optionally
  836.                    specify the screen coordinates by following On with
  837.                    @Row,Column ; where valid ranges for row and column
  838.                    are 1 to  25 and 1 to  80 respectively. The default
  839.                    position for the indicator  is 1,80. For example to
  840.                    turn  the indicator  on at  row  25, column  80 the
  841.                    following switch would be used
  842.  
  843.                    in:on@25,80
  844.  
  845.                    or to turn it off
  846.  
  847.                    in:off
  848.  
  849.                    Note  that  if  in:on is  specified  without  a new
  850.                    position,  then  the previous  position  setting is
  851.                    retained.
  852.  
  853.  
  854.  
  855.                                   Page 11
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862.  
  863.  
  864.  
  865.  
  866.      4.2 CD REDIRECTOR COMMAND LINE
  867.  
  868.      The CD  Redirector (CDR.EXE) command  line must  contain a unique
  869.      name for  the CD Redirector  session and can  contain an optional
  870.      number of Local Drives specifier for CDWORK.
  871.  
  872.      CDR [Unique Name] {Number of Local Drives}
  873.  
  874.      e.g.
  875.  
  876.      CDR STN1 1
  877.  
  878.      The  number of  local drives  defaults to  one if  not specified.
  879.      Since MSCDEX uses an extra 4K of ram per local drive, a figure of
  880.      1 is recommended  if MSCDEX is  to be used.  Since it is unlikely
  881.      that  a  workstation  will  be  accessing  more  than  one CD-ROM
  882.      simultaneously this  does not impose  a limitation as  CDM can be
  883.      used to alter the actual CD-ROM drive that the single local drive
  884.      is connected to at any time.
  885.  
  886.      Note that  providing MSCDEX hasn't  been run CDM.EXE  can also be
  887.      used to alter the number of local drives.
  888.  
  889.      CDR can be  logged into a maximum  of five CD  Servers at any one
  890.      time. Local Drives can range from one to twenty five.
  891.  
  892.      4.3 CD-SERVER COMMAND LINE SWITCHES
  893.      
  894.      The syntax of the CD Server (CDS.EXE) command line is as follows
  895.  
  896.          CDS [Server_Name] device=device_name {switches}
  897.  
  898.      [Server_Name] a  unique name  which is  used to  represent the CD
  899.      Server on the network. At least one device must be specified.
  900.  
  901.      Where {switches} represents  any of the  following switches, each
  902.      separated by a space. Note  that any characters between {} braces
  903.      are optional, the {}  characters do NOT form  part of the switch.
  904.      Square braces  [] indicate  that the words  between the  [] are a
  905.      name  and should  not be  entered as  shown. i.e.  The name  of a
  906.      Device, CD Server, or Drive  Number should be substituted for the
  907.      [name]  entry  (the  []  characters  are  not  required.  e.g. To
  908.      indicate  that a  device name  is required  we might  say [Device
  909.      Name], when CDS is  actually run we might  use DEVICE1 instead of
  910.      [Device Name]. In all cases a  = character may be substituted for
  911.      the : character in the following list.
  912.  
  913.      Switch        Function
  914.  
  915.      D{evice}      Syntax
  916.  
  917.                    Device:[Device_Name]
  918.  
  919.  
  920.  
  921.                                   Page 12
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928.  
  929.  
  930.  
  931.                    where [Device_Name] is the named of a CD-ROM device
  932.                    driver already installed on the server. This switch
  933.                    may be used a maximum  of eight times connecting to
  934.                    a  maximum of  32  drives per  server  (each device
  935.                    driver can  handle multiple  drives -  the total of
  936.                    these drives must not exceed 32). Device drivers to
  937.                    which CDS attaches are  removed from the DOS device
  938.                    list  so other  programs can  no longer  access the
  939.                    device(s).
  940.  
  941.      Us{ers}       Syntax
  942.  
  943.                    Users:[Maximum Number of logged in CD users]
  944.  
  945.                    Note that  a NETBIOS  session is  required for each
  946.                    logged  in  user.  CDS  DOES  NOT  check  that your
  947.                    NETBIOS   can  support   the  number   of  sessions
  948.                    corresponding  to your  Users specification,  it is
  949.                    the  responsibility  of the  network  configurer to
  950.                    ensure  that   enough  netbios   sessions  will  be
  951.                    available. (Up to 254 with LANtastic)
  952.  
  953.      Bu{ffer}      Syntax
  954.  
  955.                    Buffer:[Buffer Size in sectors]
  956.  
  957.                    e.g. Buffer:4
  958.  
  959.                    Specifies the  size of the  network transfer buffer
  960.                    used to  pass CD ROM  data to  CD workstations. The
  961.                    actual  buffer  size  is  approximately  2K  by the
  962.                    specified buffer  size. The default  Buffer Size is
  963.                    three  sectors (about  6K). Larger  buffers improve
  964.                    performance  but  use  more   memory  when  CDS  is
  965.                    installed leaving  less room for  other programs to
  966.                    run (This is not a  consideration when running a CD
  967.                    Server in dedicated mode).  Note that one buffer is
  968.                    allocated PER network task (see "Tasks")
  969.  
  970.      Ta{sks}       Syntax
  971.  
  972.                    Tasks:[Number of Network Tasks]
  973.  
  974.                    e.g. Tasks:3
  975.  
  976.                    The  network  tasks   figure  determines  how  many
  977.                    network   CD   requests  the   server   can  handle
  978.                    simultaneously.   The   default   is   one.   On  a
  979.                    non-dedicated server the law of diminishing returns
  980.                    is reached at  a figure of  about five tasks. Three
  981.                    tasks  is usually  adequate, use  two if  memory is
  982.                    tight.
  983.      5.0 CACHING YOUR CD-ROM DRIVES - CD-CACHE
  984.  
  985.  
  986.  
  987.                                   Page 13
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995.  
  996.  
  997.      CD-CACHE is  a caching program  specifically designed  to work in
  998.      conjunction with CD-Serve on a CD-ROM server. Because of the slow
  999.      access times of CD-ROM drives use of CD-CACHE is almost essential
  1000.      if three or  more than three  users will be  accessing the CD-ROM
  1001.      simultaneously.  In fact  using  CD-CACHE will  usually  speed up
  1002.      response times even when only one user is accessing the CD-ROM.
  1003.  
  1004.      CD-CACHE can use conventional,  extended, expanded, or XMS memory
  1005.      for caching purposes  CD-CACHE will  cache any accesses to any of
  1006.      the CD-ROM drives  (i.e. up to  32) that are  being managed by CD
  1007.      Serve (CDS.EXE).
  1008.  
  1009.      Like CDS.EXE CD-CACHE (CDC.EXE) is a TSR program. This means that
  1010.      when you run CDC from the command line it will install itself and
  1011.      return to the DOS prompt while  remaining in memory to perform CD
  1012.      caching as necessary. CDC will not install unless CDS has already
  1013.      been installed.
  1014.  
  1015.      CDC has a number of command line switches, the two that will most
  1016.      commonly be used are those that specify the type of memory CDC is
  1017.      to use for caching  purposes and the amount  of memory to use for
  1018.      caching.
  1019.  
  1020.      The syntax of the CD Cache (CDC.EXE) command line is as follows
  1021.  
  1022.          CDC {switches}
  1023.  
  1024.      Where {switches} represents  any of the  following switches, each
  1025.      separated by a space. Note  that any characters between {} braces
  1026.      are optional, the {}  characters do NOT form  part of the switch.
  1027.      Square braces  [] indicate  that the words  between the  [] are a
  1028.      name and should not be entered  as shown. i.e. A number of KBytes
  1029.      of memory to be used would  be substituted for the [Cache Size in
  1030.      Kbytes] entry  (the [] characters  are not required.  When CDC is
  1031.      actually run we might use 1000 instead of [Cache Size in KBytes].
  1032.      In all cases a = character may be substituted for the : character
  1033.      in  the  following  list.  Command  line  switches  are  not case
  1034.      sensitive, i.e. TYPE is the same as Type or typE.
  1035.  
  1036.      Switch        Function
  1037.  
  1038.      Type          Syntax
  1039.  
  1040.                    Type:{Conv|Ext|Ems|Xms}
  1041.  
  1042.                    e.g.
  1043.  
  1044.                    TYPE:CONV  means to  use conventional memory (below
  1045.                    the 640K boundary) for caching.
  1046.  
  1047.                    TYPE:EXT for Extended Memory
  1048.                    TYPE:EMS for Expanded memory
  1049.                    TYPE:XMS for XMS memory
  1050.  
  1051.  
  1052.  
  1053.                                   Page 14
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.  
  1061.  
  1062.  
  1063.                    The default  is Conventional  if no  TYPE switch is
  1064.                    used.
  1065.  
  1066.      Size          Syntax
  1067.  
  1068.                    Size:[Cache Size in KBytes]
  1069.  
  1070.                    e.g. type:1000 for  a 1MByte cache.  The default is
  1071.                    to use ALL of the specified type of cache memory if
  1072.                    no size switch  is found. Note that  if you use all
  1073.                    of conventional memory as cache it is preferable to
  1074.                    use the Dedicate CDC switch  to cause the CD Server
  1075.                    to  run  dedicated,  this will  always  use  all of
  1076.                    conventional   memory  for   caching  as   well  as
  1077.                    improving performance dramatically  and leaving you
  1078.                    the  option of  unloading CDC  at any  time without
  1079.                    re-booting the  CD Server.  See the  "Dedicate" CDC
  1080.                    switch  for more  detail. If  you run  CD-CACHE not
  1081.                    dedicated and use all available conventional memory
  1082.                    for caching  there will  be NO  MEMORY LEFT  TO RUN
  1083.                    OTHER PROGRAMS.
  1084.  
  1085.      Ded{icate}    Causes CD Cache  to run the  CD-Server in dedicated
  1086.                    mode.    This   improves    CD-Server   performance
  1087.                    dramatically  (5  to  10  fold)  and  will  add any
  1088.                    remaining  conventional memory  available  after CD
  1089.                    Cache has loaded  to the cache  memory. E.G. if you
  1090.                    have specified  1MByte of extended  memory as cache
  1091.                    and  use the  dedicate switch,  and CD  Cache finds
  1092.                    that 500K  of conventional  memory remain available
  1093.                    after it has  loaded - your  total cache size would
  1094.                    be  1.5MBytes. When  CD Cache  is run  in dedicated
  1095.                    mode pressing the Esc key on the CD-Server keyboard
  1096.                    will unload CD Cache and  return to the DOS command
  1097.                    line,  leaving the  CD  Server as  a non-dedicated,
  1098.                    non-cached  (as  far  as  CD  ROM's  are concerned)
  1099.                    server.
  1100.  
  1101.      Buff{er Sectors}
  1102.                    Syntax
  1103.  
  1104.                    Buffer:{Buffer Size in Sectors}
  1105.  
  1106.                    When CD-Cache  performs any CD-ROM  reads it ALWAYS
  1107.                    reads the same number  of sectors into cache memory
  1108.                    then returns the requests sectors from the cache to
  1109.                    CD Server. For optimum  performance the Buffer Size
  1110.                    set for CD-Cache  should be a  multiple of that set
  1111.                    for CD  Serve. The  default for  CD Serve  is three
  1112.                    sectors and the default for CD-CACHE is six. As you
  1113.                    can see the  default of six for  CD-Cache will be a
  1114.                    multiple of Buffer  settings for CD  Server of one,
  1115.                    two,  or  three sectors.  The  maximum  buffer size
  1116.                    setting is 25 sectors  (about 64KBytes). The buffer
  1117.  
  1118.  
  1119.                                   Page 15
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.  
  1127.  
  1128.  
  1129.                    size you choose will be determined by the amount of
  1130.                    conventional and  cache memory  you are  willing to
  1131.                    let CD-Cache  use and  the performance  you require
  1132.                    from the server. See  the "Advanced Topics" section
  1133.                    for  information on  how to  make decisions  on the
  1134.                    best  combinations  of  options  to  select  for CD
  1135.                    Server  and CD  Cache  to optimize  performance for
  1136.                    your application.
  1137.  
  1138.      An example  command line for  running CD Cache  in dedicated mode
  1139.      using 2 MBytes of extended memory would be as follows :
  1140.  
  1141.      CDC Type:Ext Size:2000
  1142.  
  1143.      6.0 ADVANCED TOPICS
  1144.  
  1145.      6.1 MEMORY USAGE
  1146.  
  1147.      The amount  of conventional memory  used by the  various CD Share
  1148.      programs and MSCDEX after being loaded is listed below.
  1149.  
  1150.      NOTE: 1K = 1024 Bytes
  1151.  
  1152.      PROGRAM       MEMORY USED
  1153.  
  1154.      CDWORK.SYS    < 650 Bytes
  1155.      CDR.EXE       8 KBytes
  1156.  
  1157.      CDS.EXE       12K + Users * 106 + Tasks * (BufferSecs*2532 + 225)
  1158.  
  1159.                    e.g. 10 Users, 2 tasks, 5 sectors per buffer =
  1160.  
  1161.                    12K + 10 * 106 + 2 * ( 5 * 2532 + 225)
  1162.  
  1163.                    = 39118 Bytes
  1164.                    = 38.2 K
  1165.  
  1166.      CDC.EXE       Conventional Cache :
  1167.  
  1168.                        12K + Size of Cache
  1169.  
  1170.                    Other               :
  1171.  
  1172.                        Buffer Size Bytes(BSB) = BufferSectors * 2532
  1173.                        Buffers in Cache (BIC) = CacheSize/BSB
  1174.  
  1175.                        Conventional Memory used = 12K + BIC*34 + BSB
  1176.  
  1177.                        e.g. Cache Size = 2MBytes of Extended Memory
  1178.                             BufferSectors = 6
  1179.  
  1180.                        BSB = 6 * 2532 = 15192 Bytes
  1181.                        BIC = (2000 * 1024)/15192 = 134(.8)
  1182.  
  1183.  
  1184.  
  1185.                                   Page 16
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.  
  1193.  
  1194.  
  1195.                        Conv Mem Used = 12K + 134*34 + 15192
  1196.                                      = 31012 Bytes
  1197.                                      = 30.3 K
  1198.  
  1199.  
  1200.  
  1201.      MSCDEX.EXE    22K + 4K per logical  drive (e.g. one device driver
  1202.                    controlling 2 drives  would use approximately 30K).
  1203.                    This will vary slightly according to the version of
  1204.                    MSCDEX.
  1205.  
  1206.      6.2 OPTIMIZING CD-SERVE PARAMETERS FOR A NON-DEDICATED SERVER
  1207.  
  1208.      For a non-dedicated CD  Server we are assuming  that you want the
  1209.      server to use as  little memory as possible.  As with most things
  1210.      in real life you rarely get  something for nothing - the more you
  1211.      prune back  the resources  available to  CD Serve  the poorer the
  1212.      performance will  be. The trick  is to strike  a compromise which
  1213.      gives both acceptable memory usage and acceptable performance.
  1214.  
  1215.      As  you can  see  from the  CDS.EXE  section in  section  6.1 CDS
  1216.      conventional memory usage is governed by three parameters
  1217.  
  1218.          1. Users
  1219.          2. Buffer Sectors
  1220.          3. Tasks
  1221.  
  1222.      Obviously you should only specify the number of CD users that you
  1223.      actually want the CD  Server to be able  to have connected at any
  1224.      one time.
  1225.  
  1226.      The "Buffer  Sectors" parameter  defines the  size of  the memory
  1227.      buffer that CDS  uses to return  CD ROM data  to a CD Redirector.
  1228.      The larger this parameter  is made (Max 25)  the larger the block
  1229.      of data that the server can send to the CD Redirector in one hit.
  1230.      However the maximum figure of 25 sectors amounts to a buffer size
  1231.      of about 64K and there is  one buffer allocated per network task,
  1232.      as  you can  see  allocating large  buffers  and tasks  can quite
  1233.      quickly gobble up huge amounts of memory.
  1234.  
  1235.      The number of tasks determines  how many CD network requests that
  1236.      the  CD Server  can  process at  any  one time.  Performance will
  1237.      improve  as  the  number  of  tasks  is  increased.  The  law  of
  1238.      diminishing returns  is reached for  a non-dedicated  server at a
  1239.      figure of about five tasks.
  1240.  
  1241.      The question then  arises as to  which combination is  best for a
  1242.      non-dedicated server. The  answer of course  lies in the question
  1243.      "how much memory do you want left over after CDS has been run and
  1244.      what  level  of   performance  are  you   going  to  consider  as
  1245.      satisfactory ?". For minimum memory usage both the Buffer Sectors
  1246.      and  Tasks should  be reduced  to a  minimum. The  default buffer
  1247.      sectors setting  is three,  a setting of  two is  probably a good
  1248.      starting  point if  you  a trying  to  minimize memory  usage and
  1249.  
  1250.  
  1251.                                   Page 17
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.  
  1259.  
  1260.  
  1261.      maintain reasonable performance. A Tasks setting of two will give
  1262.      a  fairly  substantial  improvement  over  the  default  of  one,
  1263.      improvements will be gradually decreasing  as the number of tasks
  1264.      is increased through three, four, and five.
  1265.  
  1266.      With  this  background  experimentation   is  probably  the  best
  1267.      indicator of what  will be acceptable  for your application. When
  1268.      evaluating   performance  it   should  be   noted  that   CD  ROM
  1269.      applications  usually  have  long   periods  of  disk  inactivity
  1270.      interspersed  with short  bursts  of activity  when  programs and
  1271.      images are  loaded from  the CD ROM.  A simple  method of gauging
  1272.      performance is to create a batch file on a number of workstations
  1273.      which  reads a  large  number of  files  from the  CD-ROM  into a
  1274.      temporary file  on a hard  disk, deletes the  temporary file then
  1275.      loops to the beginning - timing  the loop will give an indication
  1276.      of performance. If you have this  arrangement set up and you wish
  1277.      to re-boot  the server  in order  to alter  CDS parameters  it is
  1278.      quite acceptable to simply re-boot the server. Each CD Redirector
  1279.      will  eventually report  an error  and MSCDEX  will give  you the
  1280.      options Abort, Retry, or Ignore. After CDS has been re-run on the
  1281.      CD  Server  simply  select   Retry  and  the  CD-Redirector  will
  1282.      re-connect to the server and continue.
  1283.  
  1284.      6.3 OPTIMIZING CD-CACHE PARAMETERS
  1285.  
  1286.      We will assume here  that for a non-dedicated  CD Server CD Cache
  1287.      will always  be run  using cache  memory other  than conventional
  1288.      memory;  since you  would  have to  use  all of  the conventional
  1289.      memory in order to make  the cache of any use  and if you do this
  1290.      you might  as well run  the CD  Server in dedicated  mode and get
  1291.      some real performance improvements !
  1292.  
  1293.      As you  can see  from the  calculations for  CDC.EXE conventional
  1294.      memory usage  when using  extended memory,  the additional memory
  1295.      that CDC uses beyond it's fixed code  and data size is made up of
  1296.      two components
  1297.  
  1298.          1. A  single  buffer  the  size   of  which  is  set  by  the
  1299.             "BufferSectors" command  line switch.  The default setting
  1300.             for this is 6 sectors or about 15 KBytes.
  1301.  
  1302.          2. Cache Buffer management  memory which amounts  to 34 bytes
  1303.             for each time the buffer allocated at step 1 will fit into
  1304.             the cache memory size.
  1305.  
  1306.      From step 2  we can see that  for a given  amount of cache memory
  1307.      the amount of  cache management memory  required increases as the
  1308.      "Buffer Sectors" setting decreases. In the example calculation of
  1309.      section 6.1 for 2MByte  of cache memory and  6 sectors per buffer
  1310.      we used  134 *  34 Bytes  = 4556  bytes for  cache management and
  1311.      15192 bytes for the buffer  for a total extra conventional memory
  1312.      usage  of 19748  Bytes. If  we  halved the  buffer size  to three
  1313.      sectors we could used  269 * 34 =  9146 Bytes for management plus
  1314.      7596 bytes for buffering  for a total of  16742 bytes. As you can
  1315.  
  1316.  
  1317.                                   Page 18
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323.  
  1324.  
  1325.  
  1326.  
  1327.      see we have  only reduced the  consumption of conventional memory
  1328.      by 3K  but we  have more  than doubled  the fragmentation  of the
  1329.      cache.
  1330.  
  1331.      As a general rule, the larger  the Buffers per Sector setting the
  1332.      better as  it allows  the CD-ROM  to read  more information  in a
  1333.      single disk read thus eliminating a seek from another position on
  1334.      the  disk  when  sequential sectors  are  read  from  the server.
  1335.      However a quick glance at some files on a CD-ROM will reveal that
  1336.      many of  the files  (and the directories  if you  could see their
  1337.      size) are actually less than 20K in length. This means that since
  1338.      there is  usually very  little file  fragmentation many  of these
  1339.      files could be  read with a  single access from  the CD ROM. Note
  1340.      that although CD-CACHE allocates 2532 bytes per sector so that it
  1341.      can cope with CD-ROM applications that request sector data in RAW
  1342.      mode (2532 bytes per sector) most applications read the CD-ROM in
  1343.      cooked mode which returns  2048 bytes per sector  (2K). Thus a 12
  1344.      sector buffer would  generally read 24K  bytes per read. Although
  1345.      CD-CACHE will accept buffer sizes  up to 25 sectors, using values
  1346.      above 12 decreases  the granularity of the  cache for very little
  1347.      improvement in performance.
  1348.  
  1349.      For  optimum  performance the  Buffer  size  should be  set  to a
  1350.      multiple of the BufferSectors setting  used with CDS. The default
  1351.      CD-CACHE  buffer size  is  set to  six  sectors, this  is  a good
  1352.      compromise between conventional memory usage and performance, and
  1353.      is also a  multiple of the  default CD-SERV buffer  size of three
  1354.      sectors (Also of 2, and 1 !).
  1355.  
  1356.  
  1357.      You should choose your buffer  sectors setting with the following
  1358.      things in mind:
  1359.  
  1360.          1. If  you  are  caching a  large  number  of  drives running
  1361.             different  applications,  then  for  a  given  cache  size
  1362.             smaller buffers  are going to  increase buffer granularity
  1363.             and therefore more  likely to keep  more of the frequently
  1364.             used sections of each CD-ROM in the cache.
  1365.  
  1366.          2. If  you don't  have  much memory  to  use as  cache memory
  1367.             smaller buffers  are better as  this will  help to improve
  1368.             the granularity.
  1369.  
  1370.          3. If you  have plenty of  cache memory in  comparison to the
  1371.             number  of CD-ROM's  that are  being  cached then  you can
  1372.             increase the buffer size to improve performance and reduce
  1373.             CD-ROM  drive wear  and  tear while  still  achieving good
  1374.             granularity.
  1375.  
  1376.          4. If you are running CD-CACHE in non-dedicated mode then you
  1377.             should choose a buffer size which results in an acceptable
  1378.             compromise   between   conventional    memory   used   and
  1379.             granularity
  1380.  
  1381.  
  1382.  
  1383.                                   Page 19
  1384.  
  1385.  
  1386.  
  1387.  
  1388.  
  1389.  
  1390.  
  1391.  
  1392.  
  1393.      6.4 RUNNING CD-SERVE AND CD-CACHE IN DEDICATED MODE
  1394.  
  1395.      If you  want the ultimate  in performance -  dedicate your CD-ROM
  1396.      Server !
  1397.  
  1398.      When using CD-CACHE you  can optionally tell it  to run CD Server
  1399.      in dedicated mode. This will  give an immediate speed improvement
  1400.      of  usually at  least five  hundred percent  as well  as allowing
  1401.      CD-CACHE to add  all remaining conventional  memory to it's cache
  1402.      buffers.
  1403.  
  1404.      As a bonus  you can unload  CD-CACHE and return  the CD-Server to
  1405.      non-dedicated/non-cached operation at the  touch of a key without
  1406.      disturbing  and other  network users  using  the CD-ROM's  on the
  1407.      server.
  1408.  
  1409.      To run in dedicated mode  simply include the "Dedicate" switch on
  1410.      the CD-Cache command line as follows :
  1411.  
  1412.  
  1413.      CDC Type:Extended Size:2000 Dedicated
  1414.  
  1415.      CD-Cache will respond with a  message saying that it is installed
  1416.      and running CD-Serve in dedicated mode.
  1417.  
  1418.      To  unload  CD-Cache  and   return  to  non-dedicated  CD  Server
  1419.      operation simply press  the Esc key. Network  users logged in and
  1420.      using the CD-ROM at this time will notice nothing excepting for a
  1421.      dramatic decrease in performance.
  1422.  
  1423.      If a computer is being used specifically as a dedicated CD Server
  1424.      in order to share multiple CD ROM's with maximum performance then
  1425.      the  memory  constraints  which  are  important  when  running in
  1426.      non-dedicated  mode lose  there importance.  The CD  Serve buffer
  1427.      size should be increased to about  six sectors and tasks to about
  1428.      five. The  CD-CACHE buffer  size should also  be set  to at least
  1429.      twelve sectors (you should install plenty of cache memory).
  1430.  
  1431.      Read sections 6.2 and 6.3 (if you haven't already done so) to get
  1432.      a good understanding of  the performance consequences of altering
  1433.      the CD-Serve and CD-Cache buffer sizes.
  1434.  
  1435.  
  1436.  
  1437.  
  1438.  
  1439.  
  1440.  
  1441.  
  1442.  
  1443.  
  1444.  
  1445.  
  1446.  
  1447.  
  1448.  
  1449.                                   Page 20
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456.  
  1457.  
  1458.  
  1459.  
  1460.      7.0 QUESTIONS AND ANSWERS
  1461.  
  1462.      Question :    Does  a network  computer need  to be  set up  as a
  1463.                    network  server  or  have  a  redirector  or MSCDEX
  1464.                    installed in order to be used as a CD-Server.
  1465.  
  1466.      Answer   :    No - All  that is required of  the network in order
  1467.                    to run CD Serve on  a computer is a NETBIOS network
  1468.                    driver.
  1469.  
  1470.      Question  :   Do I need to run the network redirector on a CD ROM
  1471.                    workstation.
  1472.  
  1473.      Answer    :   No -  All that  is required  on the  workstation is
  1474.                    that CDWORK.SYS is included and given a device name
  1475.                    in the CONFIG.SYS file on the workstation boot disk
  1476.                    and   that  network   NETBIOS  network   driver  is
  1477.                    installed before running CDR.EXE.
  1478.  
  1479.      Question  :   Do I need to run MSCDEX on a CD-ROM workstation.
  1480.  
  1481.      Answer    :   Only  if your  CD-ROM application  requires MSCDEX.
  1482.                    Many CD-ROM applications  install themselves on the
  1483.                    workstation hard disk then  interface to the CD-ROM
  1484.                    directly via the device  driver (CDWORK.SYS in this
  1485.                    case)  -  these applications  usually  only require
  1486.                    MSCDEX for  the initial installation  (i.e. to copy
  1487.                    the  program  files  from the  CD-ROM  to  the hard
  1488.                    disk).
  1489.  
  1490.      Question  :   Can I  use a  CD-ROM workstation  to perform normal
  1491.                    network   activities   by   running   the   network
  1492.                    redirector.
  1493.  
  1494.      Answer    :   Yes - the CD Redirector and CDWORK appear simply as
  1495.                    another device  driver to  both the  network and to
  1496.                    DOS.
  1497.  
  1498.      Question  :   Can I  run CD  Serve in  dedicated or non-dedicated
  1499.                    mode on a normal non-dedicated network server (e.g.
  1500.                    LANtastic)
  1501.  
  1502.      Answer    :   Yes,  although the  activities  of the  two servers
  1503.                    will serve to  reduce the performance  of both when
  1504.                    running under heavy load conditions.
  1505.  
  1506.      Question  :   I cannot run my  normal network redirector up after
  1507.                    running CDR and MSCDEX
  1508.  
  1509.      Answer    :   MSCDEX  is  implemented as  a  network re-director.
  1510.                    Your network redirector sees MSCDEX as a previously
  1511.                    installed   network  redirector   and   refuses  to
  1512.                    install. The solution  is to run  MSCDEX after your
  1513.  
  1514.  
  1515.                                   Page 21
  1516.  
  1517.  
  1518.  
  1519.  
  1520.  
  1521.  
  1522.  
  1523.  
  1524.  
  1525.                    network  redirector  (and  before  your  server  if
  1526.                    running the  machine up as  a non-dedicated network
  1527.                    server e.g. LANtastic's SERVER.EXE).
  1528.  
  1529.      Question  :   After running MSCDEX I  don't have enough memory to
  1530.                    run my CD-ROM program.
  1531.  
  1532.      Answer    :   MSCDEX uses an  extra 4K of  memory for every drive
  1533.                    on every device driver it is attached to. Make sure
  1534.                    that when running CDR.EXE or CDM.EXE that you don't
  1535.                    set the number of drives supported by CD Redirector
  1536.                    to more than one. You can then use CDM.EXE to alter
  1537.                    this one  logical CD-ROM drive  to different CD-ROM
  1538.                    drives on any CD Servers on the network as and when
  1539.                    required.
  1540.  
  1541.      Question  :   After I run MSCDEX I get devices with names like
  1542.  
  1543.                              G.\A.
  1544.                              H.\B.
  1545.                              I.\C.
  1546.  
  1547.                    In   my  network   connection  manager's   list  of
  1548.                    redirected   drives   and   I   can't   remove  the
  1549.                    connection.
  1550.  
  1551.      Answer    :   MSCDEX functions  in exactly  the same  way as your
  1552.                    network redirector  - it  uses the  DOS redirection
  1553.                    functions and  therefore the  CD-ROM logical drives
  1554.                    appear in  the list  of redirected  drives. Because
  1555.                    your network redirector  doesn't recognize these as
  1556.                    it's own  re-directed drives  it won't  alter these
  1557.                    connections.
  1558.  
  1559.  
  1560.  
  1561.  
  1562.  
  1563.  
  1564.  
  1565.  
  1566.  
  1567.  
  1568.  
  1569.  
  1570.  
  1571.  
  1572.  
  1573.  
  1574.  
  1575.  
  1576.  
  1577.  
  1578.  
  1579.  
  1580.  
  1581.                                   Page 22
  1582.  
  1583.  
  1584.  
  1585.